<template>
  <div>
    <p>如何使用defineAsyncComponent</p>
    <div v-for="(item, index) in list" :key="index">
      {{ item.name }}
    </div>
  </div>
</template>

<script setup lang="ts">
import { axios } from './server'

const list = await axios('./data.json')
</script>

<style scoped>

</style>